package com.sjh.lib_app.router

import android.content.Context
import com.alibaba.android.arouter.facade.Postcard
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.facade.service.DegradeService

/**
 * 自定义的全局降级策略
 * @author Extends
 * @date 2020/6/11
 */

@Route(path = "/app/degradeServiceImpl")
class DegradeServiceImpl : DegradeService {
    override fun onLost(context: Context?, postcard: Postcard?) {
        println("无法识别跳转位置")
        println(postcard?.toString()?:"---------------")
    }

    override fun init(context: Context?) {
    }
}